package com.huanming.dsjc.modular.goods.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author xufei
 * @since 2018-01-29
 */
@TableName("hmst_group")
public class Group extends Model<Group> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 排序
     */
	private String num;
    /**
     * 简称
     */
	@TableField("class_id")
	private Integer classId;
	@TableField("group_name")
	private String groupName;
	@TableField("group_login_name")
	private String groupLoginName;
	@TableField("group_login_password")
	private String groupLoginPassword;
	@TableField(exist=false)
	private String className;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupLoginName() {
		return groupLoginName;
	}

	public void setGroupLoginName(String groupLoginName) {
		this.groupLoginName = groupLoginName;
	}

	public String getGroupLoginPassword() {
		return groupLoginPassword;
	}

	public void setGroupLoginPassword(String groupLoginPassword) {
		this.groupLoginPassword = groupLoginPassword;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "HmstGroup{" +
			"id=" + id +
			", num=" + num +
			", classId=" + classId +
			", groupName=" + groupName +
			", groupLoginName=" + groupLoginName +
			", groupLoginPassword=" + groupLoginPassword +
			"}";
	}
}
